#MAKE = make
#COPY = cp
#MOVE = mv

COMMON = ./common/
TRANSPORT = ./transport/
APPLICATION = ./application/

COMMON_BIN = ./common/bin/
TRANSPORT_BIN = ./transport/bin/
APPLICATION_BIN = ./application/bin/

FLAG_BUILD = -D_REENTRANT -lpthread


#syslog: common transport application
syslog: 
	$(MAKE) -C $(COMMON)
	$(MAKE) -C $(TRANSPORT)
	$(MAKE) -C $(APPLICATION)
	
common: 
	$(MAKE) -C $(COMMON)
#	make -C $(COMMON)

transport: 
	$(MAKE) -C $(TRANSPORT)
	
application: 
	$(MAKE) -C $(APPLICATION)


clean:
	rm -f $(COMMON_BIN)*.o 
	rm -f $(TRANSPORT_BIN)*.o
	rm -f $(APPLICATION_BIN)*.o
#	rm -f ./transport/log/*.log
	rm -f ./application/application_layer
	rm -f ./transport/transport_layer
